package com.zhengaz.service.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhengaz.service.blog.entity.BlogArticleEntity;
import com.zhengaz.service.blog.vo.BlogArticleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhengzg
 * @create 2023-11-26 14:20
 */
@Mapper
public interface BlogArticleMapper extends BaseMapper<BlogArticleEntity> {

    List<BlogArticleVo> selectBlogArticleListVo(@Param("page") IPage<BlogArticleVo> page,
                                                @Param("typeId") Integer typeId,
                                                @Param("keyWord") String keyWord);


    BlogArticleVo selectBlogArticleVo(@Param("id") Integer id);
}
